<?php

use Illuminate\Database\Seeder;

class RolesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('roles')->insert([[
            'name' => '管理员',
            'slug' => 'admin',
            'description' => '管理员拥有前后台最高权限',
        ], [
            'name' => '用户',
            'slug' => 'user',
            'description' => '用户拥有前台查看权限',
        ], [
            'name' => '访客',
            'slug' => 'guest',
            'description' => '访客拥有首页查看权限',
        ], [
            'name' => '操作员',
            'slug' => 'operator',
            'description' => '操作员拥有后台业务数据管理权限',
        ]]);
    }
}
